import  unittest

from config import BASE_DIR
from scripts.test_zzh_login_params import TestZzhLogin
from scripts.test_zzh_shoppinglist_params import TestZzhShoppingList

from htmltestreport import HTMLTestReport

#初始化日志的配置信息
# init_log_config(BASE_DIR + "/log/zzh.log")





#创建测试套件实例
suite = unittest.TestSuite()
#添加测试类，组装测试用例
suite.addTest(unittest.makeSuite(TestZzhLogin))
suite.addTest(unittest.makeSuite(TestZzhShoppingList))
#创建HTMLRESTPORT类实例
runner =HTMLTestReport("./report/zzh.html",description="正中华",title="正中华")   #相对路径
# runner =HTMLTestReport(BASE_DIR +"/report/zzh.html")    #绝对路径
#runner 调用run 传入suite
runner.run(suite)

